<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
    <title>修改</title>
    <LINK href="<%=basePath%>resources/css/stylesMonitor.css" type=text/css rel=stylesheet>

   <script type="text/javascript">
  	function checkForm(){
  		var oForm = document.forms[0];
  		
  		if(oForm.name.value.length==0){
  			alert("请输入名称");
  			return false;
  		}  		
  		return true;
  	}
  </script>
  </head>

  <body>
    <div class="ContentContainer">
      <div id="divListContainer">
 		<form action="<%=basePath%>category/edit" method="post" onsubmit="return checkForm()">

   		<div>
        <table class="ContentTable" style="width:700px" align="center">
         
          <tr align="center">
            <td  class="EditTableHeader" width="600px" align="center" height="80px" colspan="2"><span>修改主机</span></td>
          </tr>
          <input type="hidden" name="id"  value=${host.id} />
        
          <tr align="center">
            <td class="Label1" width="200px" align="right" height="40px">商品分类名称：&nbsp;&nbsp;</td>
            <td class="Field1" width=400px align="left" >
            	<input type="text" size="30" name="name" value="${category.name}"/>
				  <font color="#ff0000"><span>*</span></font>
            </td>
          </tr>
     
          
          <tr align="center">
            <td class="EditTableHeader" colspan="2"  align="center" >
           		 <input type="submit" name="button2"  value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="reset" value="重写" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" name="button3"  value="返回" style="width=60px" onclick="javascript:backtolist()"/> &nbsp;&nbsp;&nbsp;&nbsp;
            </td>
          </tr>
      </table>
      
      <p align="center">
		
		</p>
	</div>
  	</form>
  	</div>
  	  <script type="text/javascript">
	function backtolist(){
		window.location.href='<%=basePath%>category/list?id='+${category.id};
	}
	</script>
  </div>
</body>

</html>
